xen/device-tree: Add dt_property_match_string helper
authorRahul Singh <rahul.singh@arm.com>
Wed, 20 Jan 2021 14:52:40 +0000 (14:52 +0000)
committerJulien Grall <jgrall@amazon.com>
Sat, 23 Jan 2021 11:48:33 +0000 (11:48 +0000)
commit51b444f84a21e71b2e7d642ac5fc2afde19f379c
tree9b8638390a5949c2e0290092df5f9471bf3a2b83
parentb3be6ffb009cc338ebf15fce841e93f5f846b63d
xen/device-tree: Add dt_property_match_string helper

Import the Linux helper of_property_match_string. This function searches
a string list property and returns the index of a specific string value.

Signed-off-by: Rahul Singh <rahul.singh@arm.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/common/device_tree.c
xen/include/xen/device_tree.h